<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>Home</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" th:href="@{/plugins/layui/css/layui.css}"  media="all">
</head>
<body>
<ul class="layui-nav">
    <li class="layui-nav-item"><a th:href="@{/home}">Spring Security Demo</a></li>
    <li class="layui-nav-item layui-this">
        <a href="javascript:;">Go</a>
        <dl class="layui-nav-child">
            <dd><a th:href="@{/login}">登录</a></dd>
            <dd><a th:href="@{/register}">注册</a></dd>
        </dl>
    </li>
</ul>

<p class="layui-elem-quote">首页</p>

<script th:src="@{/plugins/layui/layui.js}" charset="utf-8"></script>
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
<script>
    layui.use('element', function(){
        var element = layui.element; //导航的hover效果、二级菜单等功能，需要依赖element模块

        //监听导航点击
        element.on('nav(demo)', function(elem){
            //console.log(elem)
            layer.msg(elem.text());
        });
    });
</script>

</body>
</html>